<template lang="pug">
  keep-alive
    kalix-table(bizKey="histogramrequest" title='柱状图请求' ref="kalixTable"
    v-bind:tableFields="tableFields"
    v-bind:targetURL="histogramrequestURL"
    v-bind:bizDialog="histogramrequestDialog"
    v-bind:btnList="histogramrequestBtnList"
    v-bind:buttonPermissionPrefix="buttonPermissionPrefix"
    v-bind:toolbarBtnList="toolbarBtnList"
    bizSearch="HistogramrequestSearch")
</template>

<script type="text/ecmascript-6">
  import {KshHistogramrequestURL, histogramrequestBtnPermissionPrefix} from '../config.toml'
  import {histogramrequestConfigBtnList} from './config'
  import KalixTable from '../../../components/corelib/components/common/baseTable'

  export default {
    name: 'kalix-ksh-histogramrequest',
    components: {KalixTable},
    data() {
      return {
        histogramrequestURL: KshHistogramrequestURL,
        tableFields: [
          {prop: 'uuid', label: 'UUID'},
          {prop: 'name', label: '线路名称'}
          // {prop: 'field', label: '纵轴名称'}
        ],
        histogramrequestDialog: [
          {id: 'add', dialog: 'HistogramrequestAdd'},
          {id: 'view', dialog: 'HistogramrequestView'},
          {id: 'edit', dialog: 'HistogramrequestEdit'}
        ],
        histogramrequestBtnList: histogramrequestConfigBtnList,
        buttonPermissionPrefix: histogramrequestBtnPermissionPrefix,
        toolbarBtnList: [
          {id: 'add', isShow: true, title: '添加', isPermission: true}
        ]
      }
    }
  }
</script>

<style scoped lang="stylus">

</style>
